package com.crm.model.pojo;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Date;


/**
 * The persistent class for the returndetails database table.
 * 
 */
@Entity
@Table(name="returndetails")
@NamedQuery(name="Returndetail.findAll", query="SELECT r FROM Returndetail r")
public class Returndetail implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private String returndetailsid;

	private int returnnember;

	private String returnreason;

	@Temporal(TemporalType.DATE)
	private Date returntime;

	//bi-directional many-to-one association to Product
	@ManyToOne
	@JoinColumn(name="pid")
	private Product product;

	//bi-directional many-to-one association to Returned
	@ManyToOne
	@JoinColumn(name="returnid")
	private Returned returned;

	public Returndetail() {
	}

	public String getReturndetailsid() {
		return this.returndetailsid;
	}

	public void setReturndetailsid(String returndetailsid) {
		this.returndetailsid = returndetailsid;
	}

	public int getReturnnember() {
		return this.returnnember;
	}

	public void setReturnnember(int returnnember) {
		this.returnnember = returnnember;
	}

	public String getReturnreason() {
		return this.returnreason;
	}

	public void setReturnreason(String returnreason) {
		this.returnreason = returnreason;
	}

	public Date getReturntime() {
		return this.returntime;
	}

	public void setReturntime(Date returntime) {
		this.returntime = returntime;
	}

	public Product getProduct() {
		return this.product;
	}

	public void setProduct(Product product) {
		this.product = product;
	}

	public Returned getReturned() {
		return this.returned;
	}

	public void setReturned(Returned returned) {
		this.returned = returned;
	}

}